﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;

namespace BAL
{
    public class BAL_Phong
    {
        QuanLyPhongTroDBDataContext dbs;
        public BAL_Phong()
        {
            dbs = new QuanLyPhongTroDBDataContext();
        }

        public IQueryable LayPhong()
        {
            return dbs.Phongs;
        }
        public IQueryable LayLoaiPhong()
        {
            return dbs.LoaiPhongs;
        }
        public void ThemPhong(string _maPhong, string _loaiPhong)
        {

        }
        public IQueryable Test()
        {
            var t = from v in dbs.Phongs
                     select v;
            
            return t;
                     
        }

    }
}
